﻿<Window x:Class="centraldba.msx_config_addin.Forms.connect_database"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Add MSX Server" 
        Height="400" 
        Width="450"
        FocusManager.FocusedElement="{Binding ElementName=txtServerName}">
    
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        
        
        <Label Content="Server name:" Grid.Row="0" Grid.Column="0" FontWeight="Bold" Margin="3" />
        <TextBox Name="txtServerName" Grid.Row="1" Grid.Column="0" BorderThickness="3" VerticalAlignment="Top" Margin="3" Width="200" LostFocus="Server_LostFocus" GotFocus="Text_GotFocus" />

        
        <Label Content="Database name:" Grid.Row="0" Grid.Column="1" FontWeight="Bold" Margin="3" />
        <TextBox Name="txtDatabaseName" Grid.Row="1" Grid.Column="1" BorderThickness="3" VerticalAlignment="Top" Margin="3" Width="200" LostFocus="Server_LostFocus" GotFocus="Text_GotFocus" />


        <Label Content="AdminEmailAccount:" Grid.Row="2" Grid.Column="0" FontWeight="Bold" Margin="3" />
        <TextBox Name="txtAdminEmailAccount" Grid.Row="3" Grid.Column="0" BorderThickness="3" VerticalAlignment="Top" Margin="3" Width="200" GotFocus="Text_GotFocus" />


        <Label Content="AdminEmailDomainName:" Grid.Row="2" Grid.Column="1" FontWeight="Bold" Margin="3" />
        <TextBox Name="txtAdminEmailDomainName" Grid.Row="3" Grid.Column="1" BorderThickness="3" VerticalAlignment="Top" Margin="3" Width="200" GotFocus="Text_GotFocus" />


        <Label Content="AdminSmtpServer:" Grid.Row="4" Grid.Column="0" FontWeight="Bold" Margin="3" />
        <TextBox Name="txtAdminSmtpServer" Grid.Row="5" Grid.Column="0" BorderThickness="3" VerticalAlignment="Top" Margin="3" Width="200" GotFocus="Text_GotFocus" />


        <Label Content="SqlServiceAccountDomainGroup:" Grid.Row="4" Grid.Column="1" FontWeight="Bold" Margin="3" />
        <TextBox Name="txtSqlServiceAccountDomainGroup" Grid.Row="5" Grid.Column="1" BorderThickness="3" VerticalAlignment="Top" Margin="3" Width="200" GotFocus="Text_GotFocus" />


        <StackPanel Grid.Row="6" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="3">
            <Button Name="cmdOK" Content="Submit" Width="100" Click="cmdOK_Click" Margin="2" />
            <Button Name="cmdCancel" Content="Cancel" Width="100" Click="cmdCancel_Click" Margin="2" />
        </StackPanel>


        <Label Content="Status" Grid.Row="7" Grid.ColumnSpan="2" FontWeight="Bold" Margin="3" />
        <TextBox Name="txtStatus" Grid.Row="8" Grid.ColumnSpan="2" IsReadOnly="True" Width="415"
                 GotFocus="txtStatus_GotFocus"
                 HorizontalScrollBarVisibility="Auto" 
                 VerticalScrollBarVisibility="Auto" />
    </Grid>
</Window>
